package com.ym.soso.domain.param;

import com.ym.common.constant.BeanCovert;
import static com.ym.common.constant.ValidRule.Add;
import static com.ym.common.constant.ValidRule.Update;
import com.ym.soso.domain.entity.TagCommontMiddleEntity;
import com.ym.common.annotations.CustomConstraint;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 标签评价关联表对象 tag_commont_middle
 *
 * @author ym
 * @date 2020-08-20
 */
@ApiModel("标签评价关联表-修改")
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TagCommontMiddleUpdateParam extends BeanCovert<TagCommontMiddleEntity>{

    @ApiModelProperty("主键")
    @NotNull(message = "主键不能为空", groups = {Add.class, Update.class})
    private Long id;

    @ApiModelProperty("标签库ID")
    private Long tagId;

    @ApiModelProperty("评价ID")
    private Long commontId;

}
